<template>
  <div>
    <div>
      <!-- 头部 -->
      <van-nav-bar>
        <template #left>
          <h1 @click="$router.back()">
            <van-icon name="arrow-left" />
          </h1>
          <div v-show="showBack">
            <van-icon name="arrow-left" />
            <!-- 返回 -->
          </div>
        </template>
        <template #title>
          <div class="qb">
            <p>我的钱包</p>
          </div>
        </template>
      </van-nav-bar>
    </div>
    <div class="mian">
      <div class="div_3">
        <div class="div_4">
          <img src="../../../assets/png/钱包.png" alt />
        </div>
        <p class="p1">账号余额 (元)</p>
      </div>
      <div class="div_2">
        <span>{{ $store.state.Arr.reduce((a, b) => +a + +b) }}</span>
      </div>
      <div class="div_5">
        <div @click="C" class="div_5_1">
          <div>
            <span>充值</span>
          </div>
        </div>
        <div @click="T" class="div_5_2">
          <div>
            <span>提现</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      showNav: true,
      showBack: false
    };
  },
  methods: {
    C() {
      this.$router.push("/cz");
    },
    T() {
      this.$router.push("/ti");
    }
  }
};
</script>

<style scoped>
.linkaction {
  background: plum;
  color: #ffffff;
}
.div_1 {
  color: orange;
  font-size: 14px;
}
.qb {
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.mian {
  width: 80%;
  margin: 0 auto;
}
.p1 {
  font-size: 18px;
  width: 110px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  margin: 20px auto;
}
.div_2 {
  font-size: 30px;
  color: orange;
  width: 100%;
  margin: 40px auto 0;
  text-align: center;
}
.div_2 span {
  font-weight: 600;
  display: inline;
}
.div_4 {
  width: 80px;
  height: 80px;
  /* background: plum; */
  border: 1px solid red;
  border-radius: 50%;
  margin: 50px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.div_5 {
  width: 100%;
  margin-top: 20px;
}
.div_5_1 {
  width: 100%;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin-bottom: 20px;
  background: #ff7f50;
  color: #ffffff;
  border-radius: 22px 22px 22px 22px;
}
.div_5_2 {
  width: 100%;
  height: 45px;
  line-height: 45px;
  text-align: center;
  color: #ffffff;
  background: #ff7f50;
  border-radius: 22px 22px 22px 22px;
}
</style>>
